<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/common.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/details.css"/>
		<script type="text/javascript" src="__STATIC__/index/js/jquery-1.8.2.min.js"></script>
		<script type="text/javascript" src="__STATIC__/index/js/commom.js"></script>
		<script type="text/javascript" src="__STATIC__/index/js/backTop.js"></script>
		<style type="text/css">
			.backTop{
			width: 50px;
			height: 50px;
			background: #C80A28;
			cursor: pointer;
			color: white;
			line-height: 50px;
			}
		</style>
		<script type="text/javascript">
    		var requestUri = "{|U:'goodsCount'}";
    		var requestCart = "{|U:'Cart/index'}";
    		var requestCartc = "{|U:'Cart/cart'}";
    		var requestCarta = "{|U:'Cart/checkout'}";
    		$(function() {
			var options =
				{
					zoomWidth: 480, //放大镜的宽度
					zoomHeight: 480,//放大镜的高度
					zoomType:'standard'
				};
				$(".jqzoom").jqzoom(options);
				$('.picSmall').click(function(){
					$('.jqzoom').eq($(this).index()).show().siblings().hide();
				});
				$('.backTop').backTop();
			});
			
		</script>
		<script type="text/javascript" src="__STATIC__/index/js/detail.js"></script>
		<link rel="stylesheet" href="__STATIC__/index/jqZoom/css/jqzoom.css" type="text/css">
		<script src="__STATIC__/index/jqZoom/js/jqzoom.pack.1.0.1.js" type="text/javascript"></script>
		<style type="text/css">
			.left{
				position: relative;
			}
			.jqzoom{
				position: absolute;
				left: 0;
				top: 0;
			}
			
		</style>
	</head>
	<body>
		<include file='__VIEW__/commom/header' />
		<div id="goodsDetails">
			<div class="goodsDetails">
				<div class="detailNav">
					您所在的位置 &nbsp; >&nbsp;
					<foreach from='$cate' key='$k' value='$v'>
						<a href="{|U:'List/index',array('cid'=>$v['cid'])}">{$v.cname}</a> <code>&gt;</code>
					</foreach>
					 <a href="">{$info.gname}</a>
				</div>
				<div class="hotCategory">
					
					<div class="newDiv">
						<h3></h3>
						<ul class="newUl">
							<foreach from='$newGoods' key='$k' value='$v'>
							<li>
								<a href="{|U:'Details/index',array('gid'=>$v['gid'])}"><img src="__ROOT__/{$v.indexpic}"/></a>
								<h5><a href="|U:'Details/index',array('gid'=>$v['gid'])}">{$v.gname|hd_substr:10,'...'}</a></h5>
								<p><em>￥{$v.shopprice}</em><i>￥{$v.marketprice}</i></p>
							</li>
							</foreach>
						</ul>
					</div>
				</div>
				<div class="product_details">
					<div class="detailsTop">
						<div class="detailLeft">
							<div class="left">
			                    <list from="$info['shop_pic']" name='$nv' row='5' empty=''>
			                    <a href="__ROOT__/{$nv.1}" class="jqzoom" style="display: none;" title="大图">
                  					<img src="__ROOT__/{$nv.0}" class="jqzoomImg" title="" style="border: 1px solid #666;"> 
                  				</a> 
                  				</list>
                  			</div>
							<ul>
								<foreach from="$info['shop_pic_s']" key="$k" value="$v">
								<li class="picSmall">
									<img src="__ROOT__/{$v}" alt="" />
								</li>
								</foreach>
								
							</ul>
						</div>
						<div class="detailRight">
							<div class="detailInfo">
								<h1>{$info.gname}</h1>
								<p>商品货号:<i id="artno">{$info.gnumber}</i> <span class="detailPrice">售价：<em>￥{$info.marketprice}</em></span></p>
								<p>促 销 价：<span class="newPrice">￥{$info.shopprice}</span> <em class="sale">{$info.discount}折</em> </p>
								<p>销　　量：  0件</p>
								<!--<p>用户评分： <span class="starOn"></span><span class="num">-->	
								<!--</span>(共有 <span class="commentNum">0 </span>条评论)</p>-->
							</div>
							<div class="shopInfo">
								<div id="">
									<ul>
										<foreach from='$specs' key='$k' value='$v'>
										<li class='specLi'>
											<span>{$v.specName}</span>
											<foreach from="$v['specValue']" key='$key' value='$value'>
											<a class="spec" gid='{$hd.get.gid}' gaid='{$value.gaid}'>{$value.gavalue}</a>			
											</foreach>
										</li>
										</foreach>
									</ul>
								</div>
								<div class="buyNum">
									<span style="line-height: 15px;">数量</span>
									<i class="decrease" style="margin-left: 30px;">-</i>
									<input type="" name="" id="" class="inputNum" value="1" />
									<i class="increase">+</i>
									<em>库存<b class="stockList" num=''>{$info.stock}</b></em>
								</div>	
								<div class="submit">
									<a href="javascript:;" class="buy" glid='' price='' gid='{$hd.get.gid}'></a>
									<a href="javascript:;" class="addCart" glid='' price='' gid='{$hd.get.gid}'></a>
								</div>
							</div>
						</div>
					</div>
					<!--tab切换开始-->
					<div class="detailTab">
						<div class="tabBarBox">
							<ul>
								<li><a href="">商品详情</a></li>
							</ul>
						</div>
						<div class="flatContent">
							<div class="goodsAttrList">
								<ul>
									<li>货号：{$info.gnumber}</li>
									<foreach from='$attr' key='$k' value='$v'>
										<li class="color">{$v.aname}:{$v.gavalue}</li>
									</foreach>
									
								</ul>
							</div>
							<div class="goodsShow">
								<img src="__STATIC__/index/images/750-302.jpg	" alt="" />
								<foreach from="$info['viewpic']" key='$k' value='$v'>
								<img src="__ROOT__/{$v}" alt="" />
								</foreach>
								{$info.intro}
							</div>
						</div>
					</div>
					<!--tab切换结束-->
				</div>
				
			</div>
		</div>
		
		<!--尾部开始-->
		<include file='__VIEW__/commom/bottom.html' />
		<!--尾部结束-->
		<div class="backTop">
			返回顶部
		</div>
	</body>